<?php
/**
 * Created by JetBrains PhpStorm.
 * User: ngannv
 * Date: 1/19/12
 * Time: 1:03 PM
 * To change this template use File | Settings | File Templates.
 */

if (MEMCACHE_ON) {

    echo "<fieldset class='debug'>
        <legend>Memcache :</legend><a href='javascript:void(0)' class='debug-exp' id='ebmemcache'></a>
        <ol class='debug'>
        <li><span style='font-size:13px;;color:red'> get: " . AZMemcache::$get . "; miss: " . AZMemcache::$miss . "; replace: " . AZMemcache::$replace . "; set: " . AZMemcache::$set . "; del: " . eb_memcache::$del . " </span></li>
        </ol>";

}
if (AZArrCache::$cache_list) {
    echo '<fieldset class="debug"><legend>Static Cache : </legend><a href="javascript:void(0)" class="debug-exp" id="StaticCache"></a>
        <ol class="debug">' . AZArrCache::$cache_list . '</ol>';
    echo '</fieldset>';
}
if (CGlobal::$query_debug != '') {
    echo '<div class="debug-sql-region">' . CGlobal::$query_debug . '</div>';
}
if (StaticCache::$cacheFilesList != '') {
    echo '<fieldset class="debug"><legend>Static Cache : </legend><a href="javascript:void(0)" class="debug-exp" id="StaticCache"></a>
        <ol class="debug">' . StaticCache::$cacheFilesList . '</ol>';
    echo '</fieldset>';
}
if (AutoLoader::$list_file) {
    echo '<fieldset class="debug"><legend>AutoLoad : </legend> <a href="javascript:void(0)" class="debug-exp" id="classAutoload"></a>
        <ol class="debug">' . AutoLoader::$list_file . '</ol>';
    echo '</fieldset>';
}
if (CGlobal::$error_handle) {
    echo '<fieldset class="debug">
        <legend>Module extension : </legend><ol class="debug">' . CGlobal::$error_handle . '</ol>';
    echo '</fieldset>';
}
echo '<fieldset class="debug"><legend>Summary: </legend>';
echo "<div align='center'><strong>Pageload time: <span style='color:red'>{$page_load_time}</span> - Total SQL Time: <span style='color:red'>{$sql_load_time}</span> - Total queries : <span style='color:red'>{$queries_count}</span> -  Server IP address : <span style='color:red'>{$_SERVER['SERVER_ADDR']}</span> - Time now is : <span style='color:red'>{$time_now}</span>- EBRewrite : <span style='color:red'>" . AZRewrite::$count . "</span></strong></div>";
echo '</fieldset>';
